<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="componentheading"><?php echo $a[heading] ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><hr><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td>
		<table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr>
			<td colspan="2"></td>
			</tr>
			<tr>
			<?php if($w > 0) {
			//show wishlist contents
			for ($i=0; $i<$w; $i++) {
			echo $a[wish_items][$i];
			?>
			
			<?php
			}
			require(DIR_WS_MODULES. 'wishlist_details.php');
			?>
			</tr>
	</table>
	</td>
	  <tr>
        <td>
        <tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="contentheading"><?php echo $a[heading2] ?></td>
          </tr>
        </table></td>
      </tr>
      <tr><td>
      <?php echo $a[wishlist_send_form]?>
      </td></tr>
        <?php
			}else{
			//empty whishlist
			?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"><?php echo $a[wishlist_empty];?></td>
	  </tr>
	</table>

			<?php
			}
			?>
			</td>
      </tr>
    </table></td>